package com.example.demo.controller;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *  UserController 使用了Aop, 该类是为了和UserController形成对照
 */

@RestController
@RequestMapping("/article")
public class ArticleController {

    @RequestMapping("/love")
    public String sayLove() {
        System.out.println("执行了 ArticleController 的 sayLove 方法");
        return "hello world";
    }

}
